﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace BasicForms
{
    public partial class FrmWarning : BasicForms.FrmBase
    {
        #region Title property
        private string _Title;
        public string Title
        {
            get
            {
                return _Title;
            }
            set
            {
                _Title = value;
            }
        }
        #endregion

        #region Message property
        private string _Message;
        public string Message
        {
            get
            {
                return _Message;
            }
            set
            {
                _Message = value;
            }
        }
        #endregion

        public FrmWarning(string title, string message)
        {
            InitializeComponent();
            this.Text = title;
            txtMessage.Text = message;
        }

        public static void Show(string title, string message)
        {
            FrmWarning frm = new FrmWarning(title, message);
            frm.Show();
        }

        private void btnClose_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
